package com.tensquare.friend.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Macross
 * @Type Friend.java
 * @Desc
 * @date 2019/12/25 20:35
 */
@Data
@Entity
@Table(name = "tb_friend")
@NoArgsConstructor
@AllArgsConstructor
@IdClass(Friend.class)
@ApiModel(description = "关注信息实体类")
public class Friend implements Serializable {

    @Id
    @Column(name = "userid")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @Id
    @Column(name = "friendid")
    @ApiModelProperty(value = "好友ID")
    private String friendId;

    @Column(name = "islike")
    @ApiModelProperty(value = "是否互相喜欢")
    private String isLike;

}
